<?php
$id = @$_GET['id'];
$box_title= "View Messages";
$box_contents = "";

$temp =  sql_query("SELECT * FROM messages WHERE id=\"$id\"");
$res = sql_fetch_row($temp);

$box_contents .= "<b>Subject: </b>".$res['subject'].'<hr>'.$res['message'];
?>